{extend name="public:base"}
{block name='css'}
{/block}

{block name='body'}
<style>
    .number {
        width: auto;
        height: auto;
        overflow: hidden;
        /* margin: 10px; */
        border-bottom: 1px solid #ededed;
    }   
    .number .p2 {
        width: 100%;
        overflow: hidden;
    }
    .number .p2 span.on{background:#66ba61;color:#fff;}
    .number .p2 span {
        display: inline-block;
        border: 1px solid #66ba61;
        border-radius: 2px;
        padding: 2px 13px;
        margin-right: 10px;
        font-size: 13px;
        color: #666;
    }
</style>
<div class="view view-main white-navbar white-toolbar">
    <div data-name="home" class="page">

        <div class="navbar">
            <div class="navbar-inner">
                <div class="left"><a href="{$my_prev_url|default='/'}" class="external"><i class="iconfont icon-fanhui"></i></a></div>
                <div class="center"><span>申请商家</span></div>
                <div class="right"></div>
            </div>
        </div>

        <div class="page-content padding-bottom50">

            <div class="list tx-info" style="margin-bottom:15px;">
                <ul>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title">状态</div>
                                <div class="item-after">
                                    {switch name='info.status'}
                                    {case value='1'}审核中{/case}
                                    {case value='2'}审核通过{/case}
                                    {case value='3'}审核不通过{/case}
                                    {case value='4'}修改信息审核中{/case}
                                    {case value='5'}修改信息审核不通过{/case}
                                    {/switch}
                                </div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title">商家名称</div>
                                <div class="item-after">{$info.title}</div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title">联系人姓名</div>
                                <div class="item-after">{$info.name}</div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title">手机号</div>
                                <div class="item-after">{$info.tel}</div>
                            </div>
                        </div>
                    </li>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title">商家地址</div>
                                <div class="item-after">{$info.address}</div>
                            </div>
                        </div>
                    </li>
                    <li class="item-content item-input">
                        <div class="item-inner">
                            <div class="item-title item-label">品牌</div>
                            <div class="number">
                                <p class="p2">
                                    {volist name='band_arr' id='vo'}
                                        <span data-key="{$vo.name}" class="{if $vo.check}on{/if}">{$vo.name}</span>
                                    {/volist}
                                </p>
                                
                            </div>
                        </div>
                    </li>
                </ul>
            </div>

            <div class="list tx-info" style="margin-bottom:15px;">
                <ul>
                    <li>
                        <div class="item-content">
                            <div class="item-inner" >
                                <div class="item-title">营业执照</div>
                                <div class="item-after" style="max-height:60px;">
                                    <img src="{$info.license}" alt="" style="width:60px;height:60px;border-radius:5px;"/>

                                </div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>

            {if condition="($info.status eq 3 || $info.status eq 5)"}
            <div class="list tx-info">
                <ul>
                    <li>
                        <div class="item-content">
                            <div class="item-inner">
                                <div class="item-title" style="width:100px;">拒绝理由</div>
                                <div class="item-text">{$info.reason}</div>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
            {/if}
            {if condition="in_array($info.status, [2,3,5])"}
            <div class="block">
                <p class="row segmented-round">
                    <a href="{:url('business_apply', ['id'=>$info['id']])}" class="col button button-big button-fill external" style="background:#ff5151;">{eq name='info.status' value='2'}修改信息{else/}重新申请{/eq}</a>
                </p>
            </div>
            {/if}
        </div>


    </div>
</div>
{/block}

{block name="js"}
<script>

</script>
{/block}